package net.itfenxiang.mybatisplus.trans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @description: TODO
 * @author: 墨凡
 * @date: 2024/4/29 18:01
 * @version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysLogLoginVO implements TransPojo {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String username;

    private String ip;

    private String address;

    private String userAgent;

    @Trans(type = TransType.DICTIONARY, key = "success_fail", ref = "statusLabel")
    private Integer status;

    private String statusLabel;

    @Trans(type = TransType.DICTIONARY, key = "login_operation", ref = "operationLabel")
    private Integer operation;

    private String operationLabel;

    private Date createTime;

}
